﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/3Column.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="changePasswordTitle" ContentPlaceHolderID="TitleContent3Column" runat="server">
    PADNUG: Register
</asp:Content>
<asp:Content ID="leftContent" ContentPlaceHolderID="LeftContent" runat="server"></asp:Content>
<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Create a New Account</h2>
    <p>
        Use the form below to create a new account. 
    </p>
    <%--<p>
        Passwords are required to be a minimum of <%=Html.Encode(ViewData["PasswordLength"])%> characters in length.
    </p>--%>
    <%= Html.ValidationSummary("Account creation was unsuccessful. Please correct the errors and try again.") %>

    <% using (Html.BeginForm()) { %>
        <div>
            <fieldset>
                <legend>Account Information</legend>
                <p>
                    <label>IP Address: </label><span><%= HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"]%></span><br />
                    <span>Your IP address is being recorded for security purposes.</span>
                </p>
                <p>
                    <label for="firstname">First Name:</label>
                    <%= Html.TextBox("firstname")%>
                    <%= Html.ValidationMessage("firstname")%>
                </p>
                <p>
                    <label for="lastname">Last Name:</label>
                    <%= Html.TextBox("lastname")%>
                    <%= Html.ValidationMessage("lastname")%>
                </p>
                <p>
                    <label for="email">Email:</label>
                    <%= Html.TextBox("email") %>
                    <%= Html.ValidationMessage("email") %>
                </p>
                <p>
                    <label for="password">Password:</label>
                    <%= Html.Password("password") %>
                    <%= Html.ValidationMessage("password") %>
                </p>
                <p>
                    <label for="confirmPassword">Confirm password:</label>
                    <%= Html.Password("confirmPassword") %>
                    <%= Html.ValidationMessage("confirmPassword") %>
                </p>
                <p>
                    <input type="submit" value="Register" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
<asp:Content ID="rightContent" ContentPlaceHolderID="RightContent" runat="server"></asp:Content>